<!DOCTYPE html>
<html>

<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>教练信息审核管理</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <link rel="stylesheet" href="../plugins/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="../plugins/adminLTE/css/AdminLTE.css">
    <link rel="stylesheet" href="../plugins/adminLTE/css/skins/_all-skins.min.css">
    <link rel="stylesheet" href="../css/style.css">
	<script src="../plugins/jQuery/jquery-2.2.3.min.js"></script>
    <script src="../plugins/bootstrap/js/bootstrap.min.js"></script>
    
    <script type="text/javascript" src="../plugins/angularjs/angular.min.js"></script>
    
	
	<!--分页组件  -->
		<script type="text/javascript" src="../plugins/angularjs/pagination.js"></script>
		<link rel="stylesheet" href="../plugins/angularjs/pagination.css">
	<!--分页结束  -->
    
    <script type="text/javascript" src="../js/base_pagination.js"></script>
    <script type="text/javascript" src="../js/service/coachService.js"></script>
    <script type="text/javascript" src="../js/controller/coachController.js"></script>
    <script type="text/javascript" src="../plugins/layer/layer.js"></script>
    
    
</head>

<body class="hold-transition skin-red sidebar-mini" 
ng-app="maiworld"  ng-controller="coachController" ng-init="searchEntity={authentication:'0'}">
  <!-- .box-body -->
                <div class="box box-primary">
                    <div class="box-header with-border">
                        <h3 class="box-title">后台审核</h3>
                    </div>

                    <div class="box-body">

                        <!-- 数据表格 -->
                        <div class="table-box">

                            <!--工具栏-->
                            
                            <div class="box-tools pull-right">
                                <div class="has-feedback">
							        真实姓名：<input ng-model="searchEntity.name" >
									手机号： <input ng-model="searchEntity.phone" >									
									<button class="btn btn-default" ng-click="reloadList()" >查询</button>                                    
                                </div>
                            </div>
                            <!--工具栏/-->

			                  <!--数据列表-->
			                  <table id="dataList" class="table table-bordered table-striped table-hover dataTable">
			                      <thead>
			                          <tr>
			                              <th class="" style="padding-right:0px">
			                                  <input id="selall" type="checkbox" class="icheckbox_square-blue">
			                              </th> 
										  <th class="sorting_asc">教练ID</th>
									      <th class="sorting">教练姓名</th>
									      <th class="sorting">手机号</th>
									      <th class="sorting">培训车型</th>
									      <th class="sorting">车牌号</th>
									      <th class="sorting">科目类型</th>
									      <th class="sorting">室内外</th>
									      <th class="sorting">认证状态</th>
									      <th class="sorting">所属校区</th>	
									       <th class="sorting">创建时间</th>   
									     							
					                      <th class="text-center">操作</th>
			                          </tr>
			                      </thead>
			                      <tbody>
			                          <tr ng-repeat="entity in list">
			                              <td><input  type="checkbox"></td>			                              
				                          <td>{{entity.cid}}</td>				                          
									      <td>{{entity.name}}</td>
									      <td>{{entity.phone}}</td>
									      <td>
										      <span ng-show="entity.vehicleType =='1'">C1</span>
										      <span ng-show="entity.vehicleType =='2'">C2</span>
										      <span ng-show="entity.vehicleType =='3'">B1</span>
										      <span ng-show="entity.vehicleType =='4'">B2</span>
										      <span ng-show="entity.vehicleType =='5'">A1</span>
										      <span ng-show="entity.vehicleType =='6'">A3</span>
									      </td>
									      <td>{{entity.plateNumber}}</td>
									      <td>
										      <span ng-show="entity.subject =='0'">科目二</span>
										      <span ng-show="entity.subject =='1'">科目三</span>
									      </td>
									      <td>
										      <span ng-show="entity.indoor =='0'">室内</span>
										      <span ng-show="entity.indoor =='1'">室外</span>
									      </td>
									      <td>
										       <span ng-show="entity.authentication =='0'">未通过</span>
										       <span ng-show="entity.authentication =='1'">已通过</span>
									      </td>
									      <td>
									      	<span ng-repeat="item in schoolList" ng-if="item.id ==entity.status" >{{item.name}}</span>
									      </td>
									      <td>{{entity.created}}</td>
		                                  <td class="text-center">                                           
		                                 	  <button type="button" class="btn bg-olive btn-xs" data-toggle="modal" data-target="#sellerModal" ng-click="findOne(entity.cid)">操作</button>                                           
		                                  </td>
			                          </tr>
									  
			                      </tbody>
			                  </table>
			                  <!--数据列表/-->                        
							  
							 <!--分页  -->
							 	<tm-pagination conf="paginationConf"></tm-pagination>
							 
                        </div>
                        <!-- 数据表格 /-->
 
                     </div>
                    <!-- /.box-body -->
                          
<!-- 商家详情 -->
<div class="modal fade" id="sellerModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-lg" >
	<div class="modal-content">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
			<h3 id="myModalLabel">教练详情</h3>
		</div>
		<div class="modal-body">							
			
			 <ul class="nav nav-tabs">
			  <li class="active"><a href="#home" data-toggle="tab">基本信息</a></li>
			  <!-- <li><a href="#linkman" data-toggle="tab">联系人</a></li> -->
			 <!--  <li><a href="#certificate" data-toggle="tab">证件</a></li> -->
			  <!-- <li><a href="#ceo" data-toggle="tab">法定代表人</a></li>
			  <li><a href="#bank" data-toggle="tab">开户行</a></li> -->
			</ul>							
			
			<!-- 选项卡开始 -->         
		    <div id="myTabContent" class="tab-content">
			    <div class="tab-pane active in" id="home">
			      <br>
			      <table class="table table-bordered table-striped"  width="800px">
			      	<tr>
			      		<td>真实姓名</td>
			      		<td>{{entity.name}}</td>
			      	</tr>
			      	<tr>
			      		<td>手机号</td>
			      		<td>{{entity.phone}}</td>
			      	</tr>
			      	<tr>
			      		<td>身份证号</td>
			      		<td>{{entity.cardId}}</td>
			      	</tr>			      	
			      </table>			      
      			</div>	
			    <div class="tab-pane fade" id="linkman">
			    	<br>
					<table class="table table-bordered table-striped" >
			      	<tr>
			      		<td>科目类型</td>
			      		<td>{{}}</td>
			      	</tr>
			      	<tr>
			      		<td>培训车型</td>
			      		<td>{{}}</td>
			      	</tr>
			      </table>
			    </div>
			    
  			    </div> 			
           <!-- 选项卡结束 -->          
			
			
		</div>
		<div class="modal-footer">						
			<button class="btn btn-success" data-dismiss="modal" aria-hidden="true" ng-click="updateAuthentication(entity.cid, '1')">审核通过</button>
         	<button class="btn btn-danger"  data-dismiss="modal" aria-hidden="true" ng-click="updateAuthentication(entity.cid, '0')">审核未通过</button>
			<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">关闭</button>
		</div>
	  </div>
	</div>
</div>


</body>

</html>